package com.shuma.shopmanage.shopmodule.userFeign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("user-module")
public interface UserFeignService {
    @PostMapping("/user/SelectIdByLikeName")
    List<Long> selectIdByLikeName(@RequestParam String userName);

    @PostMapping("/user/selectNameById")
    public String selectNameById(@RequestParam Long userId);

    @PostMapping("/user/selectIdByName")
    public Long selectIdByName(@RequestParam String userName);
}
